<div class="action">
  <%= link_to 'Clear Page Cache', :controller=>controller.controller_name, :action=>'expire_page_cache' %>
</div>
  
<h1>
  Page List
  <%= image_tag 'comatose/spinner.gif', :id=>'spinner', :align=>'absmiddle', :style=>'display:none;' %>
</h1>

<ul class="page-list root">
<% @root_pages.each do |page| %>
  <%= render :partial=>'page_list_item', :locals=>{ :page=>page, :level=>1 } %>
<% end %>
</ul>

<div id="status"></div>

<%= javascript_tag "ComatoseList.init()" %>
